/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.mc.sdk.portalcenter.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * hallele_mc_sdk
 *
 * @author anle5
 * @since 2024/10/5 13:36
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户信息")
public class UserDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 7887355137533055857L;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Integer tenantId;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 头像地址
     */
    @Schema(description = "头像地址")
    private String avatar;

    /**
     * 电话号码
     */
    @Schema(description = "电话号码")
    private String phoneNumber;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 性别
     */
    @Schema(description = "性别")
    private Integer sex;

    /**
     * 年龄
     */
    @Schema(description = "年龄")
    private Integer age;

    /**
     * 用户状态
     */
    @Schema(description = "用户状态")
    private String status;

    /**
     * 个性签名
     */
    @Schema(description = "个性签名")
    private String personalitySignature;

    /**
     * 密码过期时间
     */
    @Schema(description = "密码过期时间")
    private Date passExpiredTime;

    /**
     * 账户过期时间
     */
    @Schema(description = "账户过期时间")
    private Date accountExpiredTime;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 最近更新时间
     */
    @Schema(description = "最近更新时间")
    private Date updateTime;

    /**
     * 创建用户
     */
    @Schema(description = "创建用户")
    private Long createBy;

    /**
     * 更新用户
     */
    @Schema(description = "更新用户")
    private Long updateBy;

    /**
     * 权限(角色Code)集合
     */
    private Set<String> roles;

    /**
     * 权限集合
     */
    private Set<String> perms;
}
